//
//  LKBaseView.h
//  YLHelper
//
//  Created by she1323 on 2018/4/10.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LKBaseLabel:UILabel

+(instancetype)labelWithFrame:(CGRect)frame
                         text:(NSString *)text
                    textColor:(UIColor *)textColor
                         font:(UIFont *)font
                textAlignment:(NSTextAlignment)textAlignment
              backgroundColor:(UIColor *)bgColor;

@end


typedef void(^actionBlock)(UIButton *btn);

@interface LKBaseButton:UIButton

@property(nonatomic,copy)actionBlock block;

+(instancetype)buttonWithFrame:(CGRect)frame type:(UIButtonType) type title:(NSString *)title titleColor:(UIColor *)color layercorne:(CGFloat) radio font:(UIFont *) font backgroudColor:(UIColor *)bgcolor AndActionBlock:(actionBlock) block;


@end

typedef void (^ClickBlock)(void);

@interface TimeBtn : UIButton

@property (nonatomic,strong) ClickBlock clickblock;

- (instancetype)initWithFrame:(CGRect)frame;
//开启定时器
- (void)startTimer;
//请求失败时重新获取
- (void)setupFailState;

//开启动画
-(void)startAnimating;

@end





@interface LKBaseTableview:UITableView

+(instancetype)setTableviewWithFrame:(CGRect) frame style:(UITableViewStyle) style registercellClasss:(NSArray *) classnames;

@end


@interface LKBaseLineView:UIView

+(instancetype)setLineView;

@end

@interface LKBaseCell:UITableViewCell

//+(instancetype)setCell;

@end





